This patch fixes a race between when the disable cpu is marked online
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Sep 2005 17:03:20 +0000 (18:03 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 28 Sep 2005 17:03:20 +0000 (18:03 +0100)
commit810d33a0c96af1ecd9844bb06611db0a4bcd5137
treedd44d8b9a865af1e02729cbfc558d4617426b0e1
parent9783e5ee2a18280665699797ac4361dd07c03c28
This patch fixes a race between when the disable cpu is marked online
and binding IPIs back to the CPU.  In some cases, an IPI would be sent
to CPU1 before it had allocated a new evtchn.  Moving smp_resume() call
before setting the cpu online fixes this race.  This fixes bug #228
(http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=228).

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
linux-2.6-xen-sparse/arch/xen/i386/kernel/process.c